package com.practice.service;/**
 * Created by mayn on 2019/10/6.
 */

import com.practice.service.impl.HelloServiceHystrix;
import com.practice.utils.R;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName
 * @Description TODO
 * @Author mayn
 * @Date
 * @Version 1.0
 */
@FeignClient(name= "spring-cloud-provide",fallback = HelloServiceHystrix.class)
public interface HelloService {

  @RequestMapping(value = "/v1/hello")
  public R hello(@RequestParam(value = "name") String name);

}
